//filter module start
filterArray = ["/front/submitCode"];  //需要登陆过滤的网址

function isInFilter(str) {
    var len = filterArray.length;
    for (var i=0; i<len; ++i) {
        if (filterArray[i] == str) {
            return true;
        }
    }
    return false;
}

//get URL address
var url = window.location.pathname;
if (isInFilter(url) == true) {
    checkToken();
}
else {
    if (localStorage.getItem("token") != null) {
        clearToken();
    }
}
//filter module end
